package com.li.exception;

import com.li.enums.ResultEnum;

/**
 * @Author: LiXiang
 * @Description :
 * @Date: Created in 2018/9/9 20:25
 */
public class TestException extends RuntimeException {

    private Integer code;

    private String msg;

    public TestException(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
        this.msg = resultEnum.getMsg();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
